var strNumber="0123.11";

// string , radix
console.log(parseInt(strNumber,10));

// string , radix
console.log(parseFloat(strNumber,10));


//检测数据类型
console.log('--------------------------');
var tempData;
console.log(typeof tempData === 'undefined');

tempData='';
console.log(typeof tempData === 'string');

tempData=1.2;
console.log(typeof tempData === 'number');

tempData=[];
console.log(typeof tempData === 'object');

tempData=null;
console.log(typeof tempData === 'object');

console.log('--------------------------');

//javascript 小数运算精度问题
var num1=0.1;
var num2=0.2;

console.log(num1+num2);


//
console.log(11>'6');






